#include <iostream>
#include <random>
#include "matrix.h"

int main(int argc, char *argv[])
{
    int row = std::atoi(argv[1]);    
    int col = std::atoi(argv[2]);    


    double a[row*col];
    for(int i=0;i<row*col;i++)
    {
      a[i]= rand()/double(RAND_MAX);//gen random matrix
    }
    
    Matrix<double> A(row,col,a);
    Matrix<double> B(col,row,a);
    Matrix<double> C =A*B;

    std::cout<<"Is_square"<<"  ";
    if(A.is_square()==(row==col))
    std::cout<<"Passed."<<"\n";
    else
    std::cout<<"Failed."<<"\n";
}
